package com.talking.main;

import com.alee.laf.WebLookAndFeel;
import com.talking.service.SocketService;
import com.talking.view.componentpojo.ColorObj;
import com.talking.view.login.LoginFrame;

import javax.swing.*;
import java.awt.*;
import java.util.Enumeration;

public class Main {
    public static void main(String[] args) {

        try {
            UIManager.setLookAndFeel("com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel");

//            Enumeration<Object> keys = UIManager.getDefaults().keys();
//            Object key = null;
//
//            while (keys.hasMoreElements()) {
//                key = keys.nextElement();
//                if(key instanceof String ) {
//                    /**设置全局的背景色*/
//
//                    if(((String) key).endsWith(".background")) {
//                        UIManager.put(key, ColorObj.MAIN_BACKGROUND);
//                    }
//                }
//            }


        } catch (Exception ex) {
            ex.printStackTrace();
        }

//        UIManager.put("swing.boldMetal",Boolean.FALSE);
        new LoginFrame();
        SocketService socketService = new SocketService();

    }
}
